package com.dz.lm.dao.usermessage.read;

import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.ReaderRepository;
import com.dz.lm.domain.usercollection.UserCollection;
import com.dz.lm.domain.usercollection.UserCollectionExample;
import com.dz.lm.domain.usermessage.UserMessage;
import com.dz.lm.domain.usermessage.UserMessageExample;

import java.util.List;
import java.util.Map;

@ReaderRepository("readUserMessageDao")
public interface UserMessageDao {
    List<UserMessage> selectByExample(UserMessageExample example) throws DaoException;

    UserCollection selectByPrimaryKey(Long messageId)throws DaoException;

    List<Map> query(int uid) throws DaoException;

    int queryCount(UserMessageExample example) throws DaoException;

}